<?php
declare (strict_types = 1);

namespace app\common\service;

use think\Service;
use app\common\service\ability\service\AdminAbilityService;
use app\common\service\ability\service\ResourceAbilityService;
use app\common\service\ability\service\DictionaryAbilityService;
use app\common\service\ability\service\DictionaryValueAbilityService;
/**
 * 应用服务类？？？？
 */
class AbilityService extends Service
{
    public function register()
    {
        $this->app->bind('admin_ability', AdminAbilityService::class);
        $this->app->bind('resource_ability', ResourceAbilityService::class);
        $this->app->bind('dictionary_ability', DictionaryAbilityService::class);
        $this->app->bind('dictionary_value_ability', DictionaryValueAbilityService::class);
    }

    public function boot()
    {
        $adminAbility = app('admin_ability');
        $resourceAbility = app('resource_ability');
        $dictionaryValueAbility = app('dictionary_value_ability');
    }
}
